package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * created by wangjunfu on 2020-05-20 17:34:40
 */
public class TransportTaskReplyDTO implements Serializable {
    private Integer id;
    private Integer taskId;
    private Integer executor;
    private String replyContent;
    private Date replyTime;
    private String isUpload;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String executorName;
    private String replyTimeSr;
    private String headPicNumber;

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getExecutor() {
        return executor;
    }

    public void setExecutor(Integer executor) {
        this.executor = executor;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public String getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(String isUpload) {
        this.isUpload = isUpload;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getExecutorName() {
        return executorName;
    }

    public void setExecutorName(String executorName) {
        this.executorName = executorName;
    }

    public String getReplyTimeSr() {
        if (replyTimeSr == null || replyTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            if (replyTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(replyTime.getTime()));
            }
        } else {
            return replyTimeSr;
        }
    }

    public void setReplyTimeSr(String replyTimeSr) {
        this.replyTimeSr = replyTimeSr;
    }

    public String getHeadPicNumber() {
        return headPicNumber;
    }

    public void setHeadPicNumber(String headPicNumber) {
        this.headPicNumber = headPicNumber;
    }
}